package noppes.npcs.api.constants;

import net.minecraft.init.MobEffects;
import net.minecraft.potion.Potion;

public final class PotionEffectType {
   public static final int NONE = 0;
   public static final int FIRE = 1;
   public static final int POISON = 2;
   public static final int HUNGER = 3;
   public static final int WEAKNESS = 4;
   public static final int SLOWNESS = 5;
   public static final int NAUSEA = 6;
   public static final int BLINDNESS = 7;
   public static final int WITHER = 8;

   public static Potion getMCType(int effect) {
      switch(effect) {
      case 2:
         return MobEffects.POISON;
      case 3:
         return MobEffects.HUNGER;
      case 4:
         return MobEffects.WEAKNESS;
      case 5:
         return MobEffects.SLOWNESS;
      case 6:
         return MobEffects.NAUSEA;
      case 7:
         return MobEffects.BLINDNESS;
      case 8:
         return MobEffects.WITHER;
      default:
         return null;
      }
   }
}
